
cc.FileUtils:getInstance():setPopupNotify(false)
cc.FileUtils:getInstance():addSearchPath("src/")
cc.FileUtils:getInstance():addSearchPath("res/")

local lsynTime = 0
__G__TRACKBACK__ = function(msg)
    if os.time()-lsynTime<=5 then
        return
    end
    lsynTime = os.time()
    print("----------------------------------------")
    print("LUA ERROR: " .. tostring(msg) .. "\n")
    print(debug.traceback())
    print("----------------------------------------")
end

co = require "Core.init"
app = require "app.App".new()

local function main()
    app:init()
end

local status, msg = xpcall(main, __G__TRACKBACK__)

if not status then
    print(msg)
end
